package com.ccrego.haiyi.quickysee;

import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ccrego.haiyi.R;
import com.ccrego.haiyi.utils.FragmentUtils;
import com.pachong.android.baseuicomponent.activity.BaseActivity;

/**
 * Description:
 * Created by Andy Hong on 10/20/2017.
 */

public class MessageDetailActivity extends BaseActivity {
    private MessageDetailFragment mFragment;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mFragment = new MessageDetailFragment();
        Bundle bundle = new Bundle();
        bundle.putLong("id", getIntent().getLongExtra("id",0));
        mFragment.setArguments(bundle);

        FragmentUtils.replaceFragment(getSupportFragmentManager(), R.id.fl_container, mFragment);
        getCustomToolbar().setTitle("快看详情");
        getCustomToolbar().setBackgroundColor(Color.parseColor("#44C253"));
        getCustomToolbar().addLeftImageButton(R.mipmap.icon_back, new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }


    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.activity_message_detail, null);
    }
}
